package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IThirdPartyCompanyDao;
import com.financing.platform.dto.ProjectCompanyDTO;
import com.financing.platform.dto.ThirdPartyCompanyDTO;
import com.financing.platform.service.IThirdPartyCompanyService;

@Service("tpCompanyServiceImpl")
public class ThirdPartyCompanyServiceImpl extends BaseServiceImpl implements
	IThirdPartyCompanyService {

	@Autowired
	private IThirdPartyCompanyDao tpCompanyDaoImpl;

	@Override
	public List<ThirdPartyCompanyDTO> getThirdPartyCompanyList(
			ThirdPartyCompanyDTO tpCompanyDTO) throws SQLException {
		return tpCompanyDaoImpl.getThirdPartyCompanyList(tpCompanyDTO);
	}

	@Override
	public int updateThirdPartyCompany(ThirdPartyCompanyDTO tpCompanyDTO)
			throws SQLException {
		return tpCompanyDaoImpl.updateThirdPartyCompany(tpCompanyDTO);
	}

	@Override
	public int addThirdPartyCompany(ThirdPartyCompanyDTO tpCompanyDTO)
			throws SQLException {
		return tpCompanyDaoImpl.addThirdPartyCompany(tpCompanyDTO);
	}

	@Override
	public int getThirdPartyCompanyListCount(ThirdPartyCompanyDTO tpCompanyDTO)
			throws SQLException {
		return tpCompanyDaoImpl.getThirdPartyCompanyListCount(tpCompanyDTO);
	}

	@Override
	public int delThirdPartyCompany(int tpCompanyId) throws SQLException {
		return tpCompanyDaoImpl.delThirdPartyCompany(tpCompanyId);
	}

}
